package com.lcxw.hxzb.friendcircle.project.system.service.impl;

import com.lcxw.hxzb.friendcircle.project.system.domain.YwpdInfoDistrict;
import com.lcxw.hxzb.friendcircle.project.system.mapper.YwpdInfoDistrictMapper;
import com.lcxw.hxzb.friendcircle.project.system.service.IYwpdInfoDistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 游戏信息和区服关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-09-16
 */
@Service
public class YwpdInfoDistrictServiceImpl implements IYwpdInfoDistrictService
{
    @Autowired
    private YwpdInfoDistrictMapper ywpdInfoDistrictMapper;

    /**
     * 查询游戏信息和区服关联
     * 
     * @param districtId 游戏信息和区服关联ID
     * @return 游戏信息和区服关联
     */
    @Override
    public YwpdInfoDistrict selectYwpdInfoDistrictById(Long districtId)
    {
        return ywpdInfoDistrictMapper.selectYwpdInfoDistrictById(districtId);
    }

    /**
     * 查询游戏信息和区服关联列表
     * 
     * @param ywpdInfoDistrict 游戏信息和区服关联
     * @return 游戏信息和区服关联
     */
    @Override
    public List<YwpdInfoDistrict> selectYwpdInfoDistrictList(YwpdInfoDistrict ywpdInfoDistrict)
    {
        return ywpdInfoDistrictMapper.selectYwpdInfoDistrictList(ywpdInfoDistrict);
    }

    /**
     * 新增游戏信息和区服关联
     * 
     * @param ywpdInfoDistrict 游戏信息和区服关联
     * @return 结果
     */
    @Override
    public int insertYwpdInfoDistrict(YwpdInfoDistrict ywpdInfoDistrict)
    {
        return ywpdInfoDistrictMapper.insertYwpdInfoDistrict(ywpdInfoDistrict);
    }

    /**
     * 修改游戏信息和区服关联
     * 
     * @param ywpdInfoDistrict 游戏信息和区服关联
     * @return 结果
     */
    @Override
    public int updateYwpdInfoDistrict(YwpdInfoDistrict ywpdInfoDistrict)
    {
        return ywpdInfoDistrictMapper.updateYwpdInfoDistrict(ywpdInfoDistrict);
    }

    /**
     * 批量删除游戏信息和区服关联
     * 
     * @param districtIds 需要删除的游戏信息和区服关联ID
     * @return 结果
     */
    @Override
    public int deleteYwpdInfoDistrictByIds(Long[] districtIds)
    {
        return ywpdInfoDistrictMapper.deleteYwpdInfoDistrictByIds(districtIds);
    }

    /**
     * 删除游戏信息和区服关联信息
     * 
     * @param districtId 游戏信息和区服关联ID
     * @return 结果
     */
    @Override
    public int deleteYwpdInfoDistrictById(Long districtId)
    {
        return ywpdInfoDistrictMapper.deleteYwpdInfoDistrictById(districtId);
    }
}
